package org.example.m7_16;

import java.util.Arrays;
import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int t = in.nextInt();
        for (int i = 0; i < t; i++) {
            int[] gz = new int[6];
            for (int j = 0; j < 6; j++) {
                gz[j] = in.nextInt();
            }
            Arrays.sort(gz);
            if (gz[0] + gz[1] > gz[2] &&
                gz[3] + gz[4] > gz[5] &&
                gz[0] + gz[3] > gz[4] &&
                gz[1] + gz[4] > gz[5] &&
                gz[2] + gz[3] > gz[5]){
                System.out.println("Yes");
            }else {
                System.out.println("No");
            }
        }
    }
}
